package com.study.talk.netty.message.request;


import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

import java.util.List;

@Desc("创建群聊请求")
public class CreateGroupRequest extends TalkMessage {


    @Desc("群聊名称")
    private String groupName;

    @Desc("群聊头像地址")
    private String avatar;

    @Desc("群聊背景图片地址")
    private String bgImg;

    @Desc("群聊标签")
    private String tag;

    @Desc("群聊简介")
    private String introduce;

    @Desc("群主用户id")
    private Integer mainUser;

    @Desc("邀请入群的好友id")
    private List<Integer> userList;

    @Override
    public byte getType() {
        return MessageType.CREATE_GROUP_REQUEST;
    }

    public CreateGroupRequest(String groupName, String avatar, String bgImg, String tag, String introduce, Integer mainUser, List<Integer> userList) {
        this.groupName = groupName;
        this.avatar = avatar;
        this.bgImg = bgImg;
        this.tag = tag;
        this.introduce = introduce;
        this.mainUser = mainUser;
        this.userList = userList;
    }

    public CreateGroupRequest() {
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBgImg() {
        return bgImg;
    }

    public void setBgImg(String bgImg) {
        this.bgImg = bgImg;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getMainUser() {
        return mainUser;
    }

    public void setMainUser(Integer mainUser) {
        this.mainUser = mainUser;
    }

    public List<Integer> getUserList() {
        return userList;
    }

    public void setUserList(List<Integer> userList) {
        this.userList = userList;
    }
}
